package com.enjoy.controller;

import com.enjoy.common.Result;
import com.enjoy.domain.VdsInfoDevice;
import com.enjoy.service.VdsInfoDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 姜风
 * @date 2021/9/7 15:02
 */
@RestController
@RequestMapping("/device")
public class VdsInfoDeviceController {

    @Autowired
    private VdsInfoDeviceService vdsInfoDeviceService;

    /**
     * 获取设备列表
     *
     * @return 设备列表
     */
    @RequestMapping(value = "/getDeviceList", method = RequestMethod.GET)
    public Result getDeviceList() {
        List<VdsInfoDevice> deviceList = vdsInfoDeviceService.getDeviceList();
        return Result.success(deviceList);
    }
}
